export interface Book {
  _id?: ObjectId;
  title?: string;
  author?: string;
  isbn?: string;
  description?: string;
  status?: string;
  quantity?: number;
  total_copies?: number;
  category_id?: string;
  created?: string;
  updated?: string;
  pageSize?: number;
  pageNo?: number;

}

type ObjectId = {
  $oid: string;
};
export interface QueryBooksDataResult {
  total: number;
  list: BooksList[];
  success: boolean;
}

export interface BooksList {
  _id?: string;
  title?: string;
  author?: string;
  isbn?: string;
  description?: string;
  status?: string;
  quantity?: number;
  total_copies?: number;
  category_id?: string;
  created?: string;
  updated?: string;
}